package com.example.springboot004mybatis.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/15 19:46
 * @version: v1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private String Phone;

    // 一对一关系
    private UserInfo userInfo;



    public User(Integer id, String username, String password, String phone) {
        this.id = id;
        this.username = username;
        this.password = password;
        Phone = phone;
    }

    public User(String username, String password, String phone) {
        this.username = username;
        this.password = password;
        Phone = phone;
    }
}
